<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
if (!(ereg("Windows",$ua) && ereg("MSIE",$ua)) || ereg("MSIE 7",$ua)) {
     echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<head>

<title><?php print $head_title; ?></title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<?php print $head; ?><?php print $styles; ?><?php print $scripts; ?>
<!-- REMOVE these if you are using jquery-update!! -->
<script type="text/javascript" src="<?php print $base_path ?>misc/collapse-fix.js"></script>
<script type="text/javascript" src="<?php print $base_path ?>misc/compat-1.0.js"></script>

</head>
<body>

<!-- container -->
<div id="container">

<!-- header -->
<div id="header">

<!-- header_title -->
<div id="header_title">
<?php if (!empty($site_name)): ?>
<h1><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1>
<?php endif; ?>

<?php if (!empty($site_slogan)): ?>
<p><?php print $site_slogan; ?></p>
<?php endif; ?>
</div>
<!-- /header_title -->

<?php if (module_exists('drigg')) { ?>
<div id="header_categories">
<?php
if (module_exists('drigg')) {
	print drigg_ui_submit_button();
}
?>
<?php print drigg_ui_sections() ?>
</div>
<?php } ?>

<?php if (!empty($breadcrumb)): ?>
<!--<div id="header_breadcrumb"><?php //print $breadcrumb; ?></div>-->
<?php endif; ?>

<?php if (!empty($header)): ?>
<div id="header_content"><?php print $header; ?></div>
<?php endif; ?>

</div>
<!-- /header -->

<!-- content -->
<div id="content">

<!-- content_left -->
<div id="content_left" class="column">
<?php if (!empty($sidebar_left)): ?>
<?php print $sidebar_left; ?>
<?php endif; ?>
</div>
<!-- /content_left -->

<!-- content_center -->
<div id="content_center" class="column">
<div class="controlbar clearfix">
<?php if (!empty($title) && !( arg(0) == 'node' && is_numeric(arg(1)))) : ?>
<h2><?php print $title; ?></h2>
<?php endif; ?>

<?php
if ($page == 0 && module_exists('drigg')) {
	print drigg_ui_type_menu();
	print drigg_ui_order_menu();
}
?>
</div>
<?php if (!empty($tabs)): ?>
<div class="tabs"><?php print $tabs; ?></div>
<?php endif; ?>
<?php print $help; ?>
<?php print $messages; ?>
<?php print $content; ?>
</div>
<!-- /content_center -->

<!-- content_right -->
<div id="content_right" class="column">
<?php if (!empty($sidebar_right)): ?>
<?php print $sidebar_right; ?>
<?php endif; ?>
</div>
<!-- /content_right -->

</div>
<!-- /content -->

<!-- footer -->
<div id="footer">
<?php print $footer_message; ?>

<a href="http://www.drigg-code.org"><img src="/<?php print path_to_theme()?>/img/drigg_80_15.gif" alt="Drigg" /></a>

<p>Copyright &copy; <?php print $site_name; ?>  | <span>Powered by <a href="http://drupal.org/">Drupal</a> – <a href="http://www.drigg-code.org/">Drigg</a> Theme / <a href="http://mountfujiguide.com/">MountFujiGuide</a> created by - <a href="http://4plus.jp/">4plus</a></span></p> 
</div>
<!-- /footer -->

<?php print $closure; ?>
</div>
<!-- /container -->

</body>
</html>
